package com.cn.jiyun.entity.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 【-order】实体类
 *
 * @author lxy
 * @since 2025-01-17
 */
@Data
@Accessors(chain = true)

public class Order implements Serializable {
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;
    private Integer userId;
    private String orderType;
    private String orderStatus;
    private BigDecimal totalPrice;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date orderTime;
    //    有效时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date haveTime;
    private Integer relatedId;
    private String imgUrl;
    //    订单名称
    private String dingdanName;
    //    订单编号
    private String orderNo;

}
